package com.briup.web_demo2.exception;

import com.briup.web_demo2.enums.ResponseEnum;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SystemException extends RuntimeException {

    private ResponseEnum responseEnum;

    public SystemException(ResponseEnum responseEnum){
        super(responseEnum.getMessage());
        this.responseEnum = responseEnum;
    }
}
